package main

import com.trolltech.qt.core.QObject
import com.trolltech.qt.gui.QAction

/**
 * Created by IntelliJ IDEA.
 * Date: 11-2-27
 * Time: 下午5:29
 * @author Cui Gang
 * email:<a href="javascript:mailto">clarkhillm@gmail.com</a>
 */

class Action(parent: QObject, title: String) {
    val action = new QAction(title, parent)

    def getAction: QAction = {
        action.triggered.connect(this, "doAction()")
        action
    }
}